<?php

// Created by Khanh Nam
//tool tip for contact
?>
<?php if(isset($model)):?>
<?php Yii::app()->clientScript->registerScript("contact-tip->$model->id",<<<TOKEN
    
            $('.$model->custno-$model->locno-$model->id').hide();
            $('#$model->custno-$model->locno-$model->id').qtip({
              content: $('.$model->custno-$model->locno-$model->id'),
            
        });
   
    
TOKEN
        ,CClientScript::POS_READY);?>
<a  class="contact-link" title='' id="<?="$model->custno-$model->locno-$model->id"?>" href='index.php?r=Locationcontacts/update&id=<?=$model->id?>'><?=$model->contact?></a>
<div class='<?="$model->custno-$model->locno-$model->id"?>' id="contact-tooltip">
    <table cellspacing="10">
        <tr>
            <td >Contact&nbsp;</td>
            <td><?=$model->contact?></td>
        </tr>
        <tr>
            <td>Email&nbsp;</td>
            <td><?=$model->email?></td>
        </tr><tr>
            <td>Phone office&nbsp;</td>
            <td><?=$model->phoneoffice?></td>
        </tr>
        <tr>
            <td>Phone mobile&nbsp;</td>
            <td><?=$model->phonemobile?></td>
        </tr>
        <tr>
            <td>Phone fax&nbsp;</td>
            <td><?=$model->phonefax?></td>
        </tr>
        <tr>
            <td>Extension&nbsp;</td>
            <td><?=$model->extension?></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
        </tr>
        
        
    </table>
    
</div>


<?php endif; ?>

